/**
 * Written By: MinHo Kim (minho.kim.korea@gmail.com)
 * Copyright (C) 2011, MinHo Kim, Software Expert Program, KAIST University, Seoul, Korea.
 * This program is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published 
 * by the Free Software Foundation; version 2 of the License.
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 * See the GNU General Public License for more details.
 */
package kaist.sep502.tsp.model;


/**
 * @author minho kim
 * 
 * TSP 문제 해결을 위한 하나의 도시 정보.
 */
public class City {
	private int cityNo;
	private double x = 0.0;
	private double y = 0.0;
	
	/**
	 * @param cityNo
	 * @param x
	 * @param y
	 */
	public City(int cityNo, double x, double y) {
		this.cityNo = cityNo;
		this.x = x;
		this.y = y;
	}
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("[").append(this.cityNo).append("]");
		return sb.toString();
	}

	/**
	 * @return the cityNo
	 */
	public int getCityNo() {
		return cityNo;
	}

	/**
	 * @return the x
	 */
	public double getX() {
		return x;
	}

	/**
	 * @return the y
	 */
	public double getY() {
		return y;
	}
}
